import { request } from '@/utils';
import { getRestBaseUrl, getChinaRegionUrl } from '@/config';

//查询
export const listCellularAreaConfig = (queryForm, page = { pageSize: 10, pageNum: 1, countSql: true }) =>
  request({
    url: `${getRestBaseUrl()}/iop/cellularService/list`,
    method: 'POST',
    data: { queryForm, page },
    timeout: 3 * 60 * 1000,
  });

// 导出蜂窝门店
export const exportCellularStoreApi = queryForm =>
  request({
    url: `${getRestBaseUrl()}/iop/ExportTaskService/exportCellularStore`,
    method: 'POST',
    data: { queryForm },
    timeout: 3 * 60 * 1000,
  });

// 获取省市区
export const getChinaRegionUrlApi = () =>
  request({
    url: getChinaRegionUrl(),
    method: 'GET',
    timeout: 3 * 60 * 1000,
  });
